package org.agony2d.display.core.supportClasses {
	import org.agony2d.core.agony_internal;
	import org.agony2d.display.FusionUU;
	
	use namespace agony_internal;
	
public class FusionComp extends NodeComp {
  
	agony_internal static function NewFusionComp( proxy:FusionUU ) : FusionComp {
		var comp:FusionComp
		
		comp = (cachedFusionCompLength > 0 ? cachedFusionCompLength-- : 0) ? cachedFusionCompList.pop() : new FusionComp
		comp.m_notifier.m_target = comp.m_proxy = proxy
		return comp
	}
	
	agony_internal static var cachedFusionCompList:Array = []
	agony_internal static var cachedFusionCompLength:int
	
	
	override agony_internal function recycle() : void {
		cachedFusionCompList[cachedFusionCompLength++] = this
	}
	
}
}